public class Foo {
  void test(int x, boolean b) {
    System.out.println(x+(b?<caret>));
  }
}